<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="/WEB-INF/tld/jmesa.tld" prefix="jmesa" %> 
<%@ taglib prefix="c" uri="/WEB-INF/tld/c.tld" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>My JSP 'checkProject.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script type="text/javascript" src="/estate/js/jquery-1.2.2.pack.js"></script>
    <script type="text/javascript" src="/estate/js/jquery-1.3.min.js"></script> 
    <script type="text/javascript" src="/estate/js/jquery.jmesa.js"></script>
    <script type="text/javascript" src="/estate/js/jmesa.js"></script>     
    <script type="text/javascript" src="/estate/js/ymPrompt.js"></script>

	<link rel="stylesheet" id='skin' type="text/css" href="/estate/images/skin/bluebar/ymPrompt.css" />
    
    <link rel="stylesheet" type="text/css" href="/estate/css/jmesa.css"></link>
    <link rel="stylesheet" type="text/css" href="/estate/css/css.css"></link>
<link href="/estate/css/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
.confirm{padding:15px 20px;font-weight:bold;font-size:14px;line-height:30px}
		.confirm input {width:100%;border:1px inset #ccc}
</style>
<script type="text/javascript">

  	function gotoList(){
  	var page="${page}";
  	if(page=="projRegister")
  		window.location.href="priceProjectAction.action?method=list";
  		else if(page=="consultant")
  		window.location.href="selfVerifyAction.action?method=list";
  		else if(page=="engineering")
  		window.location.href="engineeringReviewAction.action?method=list";
  		else if(page=="tec")
  		window.location.href="tecReviewAction.action?method=list";
  		else if(page=="leader")
  		window.location.href="leaderReviewAction.action?method=list";
  		else if(page=="report")
  		window.location.href="projReportAction.action?method=list";
  		else if(page=="upload")
  		window.location.href="projUploadAction.action?method=list";
  	}
  	function regedit()
  	{
  	ymPrompt.confirmInfo({message:'请输入建议：<br/><input type="text" id="suggestion" name="suggestion"/>',title:'请输入建议',height:200,width:300,fixPosition:true,msgCls:'confirm',handler:function(result){if(result=="ok")window.location.href="stageInPriceAction.action?method=regedit&regeditId=${checkList.id}&currentStage=${checkList.stage}&suggestion="+suggestion.value;}});
  		//window.location.href="stageInPriceAction.action?method=regedit&regeditId=${checkList.id}&currentStage=${checkList.stage}&suggestion="+suggestion.value;
  		//var suggestion=prompt("请输入建议");
  		//window.location.href="stageInPriceAction.action?method=regedit&regeditId=${checkList.id}&currentStage=${checkList.stage}";
  	}
  	function deny()
  	{
  		ymPrompt.confirmInfo({message:'请输入您不同意的原因：<br/><input type="text" id="suggestion" name="suggestion"/>',title:'请输入意见',height:200,width:300,fixPosition:true,msgCls:'confirm',handler:function(result){if(result=="ok")window.location.href="stageInPriceAction.action?method=deny&regeditId=${checkList.id}&currentStage=${checkList.stage}&suggestion="+suggestion.value;}});
  		
  	}
  </script>
  </head>
  
  <body>
  <table border="0" cellpadding="0" cellspacing="0" style="background-image:url(/estate/images/gtbg.gif) " width="100%">
    <tr>
      <td width="50%" height="82" rowspan="2"><img src="/estate/images/guide_01.gif"></td>
      <td width="50%" style="background-image:url(/estate/images/guide_02.gif);color:#cc1212; font-size:16px; font-weight:bold; text-align:right; padding-right:50px; letter-spacing:1px; " height="39"><strong>项目详情</strong></td>
    </tr>
     <tr><td width="50%" style="background-image:url(/estate/images/guide_03.gif); height:43px;" align="center" valign="middle">
	  <table width="50%" border="0" cellspacing="0" cellpadding="0">
        <tr align="center">
        </tr>
      </table></td>
    </tr>
</table><br>
     <form name="form11" id="form11" method="post" action="">
    	<table width="60%" align="center" border="0" cellspacing="0" cellpadding="0" class="main">
  <tr align="center">
    	<td colspan="4" class="tableTitle">  项目详情  </td>
    	</tr>
  <tr>
    <td align="right" class="two" width="12%">项目编号：</td>
    <td align="left" class="two" width="18%"><label>${checkList.number}</label></td>
    <td align="right" class="two" width="12%">项目名称：</td>
    <td align="left" class="two" width="18%"><label>${checkList.name}</label></td>
  </tr>
   <tr>
    <td align="right" class="two">委托单位：</td>
    <td align="left" class="two"><label>${checkList.delegateCompany}</label></td>
    <td align="right" class="two">委托单位联系人：</td>
    <td align="left" class="two"><label>${checkList.delegateUser}</label></td>
  </tr>
  <tr>
    <td align="right" class="two">委托单位联系人电话：</td>
    <td align="left" class="two"><label>${checkList.delegatePhone}</label></td>
    <td align="right" class="two">工作项目类别：</td>
    <td align="left" class="two"><label>${checkList.proCatagory}</label></td>
  </tr>

  <tr>
    <td align="right" class="two">收到日期：</td>
    <td align="left" class="two"><label>${checkList.receiveDate}</label></td>
    <td align="right" class="two">合同估算价：</td>
    <td align="left" class="two"><label>${checkList.estimatePrice}</label></td>
  </tr>
  <tr>
    <td align="right" class="two">送审价：</td>
    <td align="left" class="two"><label>${checkList.submitPrice}</label></td>
    <td align="right" class="two">所属地区：</td>
    <td align="left" class="two"><label>${checkList.proRegion}</label></td>
  </tr>
  <tr>
    <td align="right" class="two">行业分类：</td>
    <td align="left" class="two"><label>${checkList.industryCatagory}</label></td>
    <td align="right" class="two">单位工程名称：</td>
    <td align="left" class="two"><label>${checkList.proName}</label></td>
  </tr>
  <tr>
    <td align="right" class="two">建设单位名称：</td>
    <td align="left" class="two"><label>${checkList.proCompany}</label></td>
    <td align="right" class="two">建设单位联系人：</td>
    <td align="left" class="two"><label>${checkList.proContact}</label></td>
  </tr>
  <tr>
    <td align="right" class="two">建设单位联系人电话：</td>
    <td align="left" class="two"><label>${checkList.proContactPhone}</label></td>
    <td align="right" class="two">工作项目分类：</td>
    <td align="left" class="two"><label>${checkList.workCatagory}</label></td>
  </tr>
  <tr>
    
    <td align="right" class="two">下发日期：</td>
    <td align="left" class="two"><label>${checkList.authorDate}</label></td>
     <td align="right" class="two">当前阶段：</td>
    <td align="left" class="two"><label>${checkList.authorDate}</label></td>

    
  </tr>
     <tr>
    <td align="right" class="two">合同ID：</td>
    <td align="left" class="two"><label>${checkList.contractId}</label></td>
    <td align="right" class="two">咨询组长：</td>
    <td align="left" class="two"><label>${contactUserId}</label></td>
  </tr>
  <tr>
    <td align="right" class="two">咨询组员：</td>
    <td colspan="3" align="left" class="two">
    <c:forEach var="memberList" items="${memberList}">
    <label>${memberList.name}</label>&nbsp;&nbsp;职责：&nbsp;&nbsp;<label>${memberList.memberJob}</label><br/>
  </c:forEach></td>
  </tr>
    <tr>
    <td align="right" class="two">备注：</td>
    <td colspan="3" align="left" class="two"><label>${checkList.remark}</label></td>
  </tr>
  <tr>
  <td colspan="4" align="center" class="two">各阶段审核意见：</td>
  </tr>
  <c:forEach var="suggestion" items="${suggestionList}">
  <tr>
  <td align="right" class="two">${suggestion.statusName}：</td>
  <td colspan="3" align="left" class="two">${suggestion.suggestion}</td>
  
  </tr>
  </c:forEach>
 
  <tr>
  	<td colspan="4" align="center" class="two">
	<input type="button" onFocus="this.blur();" style="cursor:pointer" onclick="gotoList()" class="button4" value="返回列表" />&nbsp;&nbsp;
	<c:if test="${permitLabel!=null}">
	<input type="button" onFocus="this.blur();" style="cursor:pointer" onclick="regedit()"  class="button4" value="${permitLabel}" />&nbsp;&nbsp;</c:if>
	<c:if test="${requestScope.isDeny}">
	
	
	<input type="button" onFocus="this.blur();" style="cursor:pointer" onclick="deny()" class="button4" value="${denyLabel}"/>
	</c:if>
	</td>
  </tr>
</table>
    </form>
  
  </body>
  
</html>
